import {QueryFiledUtil} from '@/utils'
import {DictOptions, SystemOptions} from "@/libs/options";

export const CONFIG_SEARCH = [
    QueryFiledUtil.setInputField('code', '配置代码'),
    QueryFiledUtil.setInputField('title', '配置名称'),
    QueryFiledUtil.setDictUrlField('state', '配置状态', DictOptions.ConfigState),
]
export const DICT_SEARCH = [
    QueryFiledUtil.setInputField('code', '字典代码'),
    QueryFiledUtil.setInputField('name', '字典名称'),
    QueryFiledUtil.setDictUrlField('rwState', '读写权限', DictOptions.DictRwState),
    QueryFiledUtil.setDictUrlField('state', '调用状态', DictOptions.DictState),
]
// 模块搜索
export const MODULE_SEARCH = [
    QueryFiledUtil.setInputField('code', '模块代码'),
    QueryFiledUtil.setInputField('name', '模块名称'),
    QueryFiledUtil.setDictUrlField('state', '安装状态', DictOptions.InstallState),
]

export const API_SEARCH = [
    QueryFiledUtil.setDictUrlField('moduleCode', '所属模块', SystemOptions.ModuleOptions),
    QueryFiledUtil.setInputField('title', '权限标题'),
    QueryFiledUtil.setInputField('expr', '权限表达式'),
    QueryFiledUtil.setInputField('url', '关联路径'),
    QueryFiledUtil.setBooleanField('custom', '权限来源', '自定义', '系统'),

]
